package today.rocky.boot.druid;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;
import today.rocky.boot.druid.datasource.DynamicDataSourceConfig;


/**
 * @author Rocky
 */
@MapperScan("today.rocky.boot.druid.mapper")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@Import({DynamicDataSourceConfig.class})
public class BootDruidApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootDruidApplication.class, args);
    }

}
